package com.sdgs.paas.sdk.core.stream;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Processor;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

/**
 * 启用stream功能注解
 *
 * @author wjj
 *
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableBinding
@Import({ PaasStreamAutoConfiguration.class })
public @interface EnablePaasStream {
	@AliasFor(annotation = EnableBinding.class)
	Class<? extends Processor>[] value() default Processor.class;
}